package com.zhss.dfs.namenode.server;

/**
 * 用来描述datanode的信息
 */
public class DataNodeInfo {

    private String ip;

    private String hostName;

    private long lastestHeartbeatTime;

    public DataNodeInfo(String ip, String hostName) {
        this.ip = ip;
        this.hostName = hostName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public long getLastestHeartbeatTime() {
        return lastestHeartbeatTime;
    }

    public void setLastestHeartbeatTime(long lastestHeartbeatTime) {
        this.lastestHeartbeatTime = lastestHeartbeatTime;
    }
}
